package org.clipjoint.service;

import org.clipjoint.entity.Purchased;
import org.clipjoint.entity.User;
import org.clipjoint.entity.Dream;

import java.sql.SQLException;
import java.util.List;

public interface UserService {

    int updateInfo(User user) throws SQLException;

    boolean checkEmail(String email) throws SQLException;

    int register(User user) throws SQLException;

    User login(User user) throws SQLException;


    List<Dream> dream(Long id) throws SQLException;

    List<Purchased> purchased(Long id) throws SQLException;
}
